		var xhr;
		var jsonAll;
		
		
		
		function createXhr(){
			//XMLHttpRequest 생성
			if(window.ActiveXObject){
				xhr = new ActiveXObject("Microsoft.XMLHTTP");
			}else{
				xhr = new XMLHttpRequest();
			}
			
		}
//-----------------------------------------검사를 위한 함수 ----------------------------------------------------	
		//검사한 정보 가져오기
		function getSentence(){
			createXhr();
			oEditors.getById["ir1"].exec("UPDATE_IR_FIELD",[]);
			var contents ="";
			contents = document.getElementById("ir1").value;
			var content ="content="+document.getElementById("ir1").value;
			//특수문자 치환
			
			if(contents !=""){
				for (var contentLen =0; contentLen<content.length;contentLen++){
					content = content.replace("<div[^>]*>(.*?)</div>","");
					content = content.replace("&nbsp;","□");
					content = content.replace("&amp;","◇");
					content = content.replace("%","■");
					content = content.replace("▶","♤");
					content = content.replace("&lt;","＜");
					content = content.replace("&gt;","＞");
					content = content.replace('<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>',"");
					content = content.replace("<!--StartFragment-->", "");
					content = content.replace("<o:p>","");
					content = content.replace("</o:p>","");
				}
				
				if(jsonAll!=null){
					for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
						var original =jsonAll.allSentence[i_sentenceSeq].original;
						var tag = jsonAll.allSentence[i_sentenceSeq].tagOriginal;
						if(jsonAll.allSentence[i_sentenceSeq].errorInfo!=null){
							for (var i_errorInfo=0;i_errorInfo<jsonAll.allSentence[i_sentenceSeq].errorInfo.length;i_errorInfo++){
								var start = jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].startPosition;
								var error = jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].errorLength;
								var sub=original.substr(start,error);
								var highLightWord=jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].hiLight;
								content = content.replace(highLightWord,sub);	
							}
						}
					}
				}
				var url = "/controller.do?command=getsentence";
				
				//2 xhr 에 callback 함수 등록
				xhr.onreadystatechange = getData;
				//3 xhr.open
				xhr.open("POST", url, false); // false : 비동기적 요청
				xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
				//4 요청 전송
				xhr.send(content);
			}
			
		}		
	//콜백 함수	
		function getData(){
			
			if(xhr.readyState == 4){
				if(xhr.status == 200){
					
					var txt = xhr.responseText;
					
					var tempValue = "("+txt+")";
					
					var JsonData = eval(tempValue);
					jsonAll=JsonData;
					
					var s_tagOriginal= null;
					
					var saveSentence="";
					
					for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
						
						var original =jsonAll.allSentence[i_sentenceSeq].original;
						var tag = jsonAll.allSentence[i_sentenceSeq].tagOriginal;
						if(jsonAll.allSentence[i_sentenceSeq].errorInfo!=null){
							for (var i_errorInfo=0;i_errorInfo<jsonAll.allSentence[i_sentenceSeq].errorInfo.length;i_errorInfo++){
								var start = jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].startPosition;
								var error = jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].errorLength;
								var sub=original.substr(start,error);
								var highLightWord=jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].hiLight;
								tag = tag.replace(sub,highLightWord);
								var index= tag.indexOf(sub)+ sub.length;
								saveSentence= saveSentence + tag.substring(0,index+7);
								tag=tag.replace(tag.substring(0,index+7),"");
								
								}
							
						}
						saveSentence= saveSentence + tag;
						
					}
										
					for (var contentLen =0; contentLen<saveSentence.length;contentLen++){
						saveSentence = saveSentence.replace("→", "→");
					}
					oEditors.getById["ir1"].setIR(saveSentence);
					document.getElementById("title").focus();
					//document.getElementById("totalError").value=jsonAll.totalError;
					document.getElementById("res").innerHTML="총 "+jsonAll.totalError+" 건의 오류가 발생하였습니다.";

				}
			}
		}
		//재검사 
		function reCheck(i_sentence,i_errorInfo,i_suggest){
			var a= oEditors.getById["ir1"].getIR();
			var suggest = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest];
			var high=jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].hiLight;
			var replaceOri = a.replace(high,suggest);
			var original =jsonAll.allSentence[i_sentence].original;
			var start = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].startPosition;
			var error = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].errorLength;
			var sub=original.substr(start,error);
			var fixOri = original.replace(sub,suggest);
			var tag = jsonAll.allSentence[i_sentence].tagOriginal;
			
			//replace된 문장을 뽑아 ir1 에 다시 셋팅 후 getSentence() 재실행
			oEditors.getById["ir1"].setIR(replaceOri);
			// 제시어, 고친단어 , 오류 문장, 고친문장 뽑아내기
			var fw= suggest;
			var ww= sub;
			var fs= fixOri;
			var ws= original;
			
			subLog(fw,ww,fs,ws);
			removeTable();
		}
		//error log 저장
		function subLog(fw,ww,fs,ws){
			createXhr();
			oEditors.getById["ir1"].exec("UPDATE_IR_FIELD",[]);
			var content ="content="+document.getElementById("ir1").value+"&fixWord="+fw+"&wrongWord="+ww+"&fixSentence="+fs+"&wrongSentence="+ws;
			//특수문자 치환
			
			for (var contentLen =0; contentLen<content.length;contentLen++){
				content=content.replace("<div[^>]*>(.*?)</div>","");
				content=content.replace("&nbsp;","□");
				content=content.replace("&amp;","◇");
				content=content.replace("%","■");
				content=content.replace("▶","♤");
				content=content.replace("&lt;","＜");
				content=content.replace("&gt;","＞");
				
			}
			
			if(jsonAll!=null){
				for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
					var original =jsonAll.allSentence[i_sentenceSeq].original;
					var tag = jsonAll.allSentence[i_sentenceSeq].tagOriginal;
					if(jsonAll.allSentence[i_sentenceSeq].errorInfo!=null){
						for (var i_errorInfo=0;i_errorInfo<jsonAll.allSentence[i_sentenceSeq].errorInfo.length;i_errorInfo++){
							var start = jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].startPosition;
							var error = jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].errorLength;
							var sub=original.substr(start,error);
							var highLightWord=jsonAll.allSentence[i_sentenceSeq].errorInfo[i_errorInfo].hiLight;
							content = content.replace(highLightWord,sub);	
						}
					}
				}
			}
			var url = "/controller.do?command=getsentence";
			
			//2 xhr 에 callback 함수 등록
			xhr.onreadystatechange = getData;
			//3 xhr.open
			xhr.open("POST", url, false); // false : 비동기적 요청
			xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
			//4 요청 전송
			
			xhr.send(content);
		}
		
		
		function transSentence(text){
			
			createXhr();
			
			var url = "/controller.do?command=transSentence";
			var content ="text="+text;
			for (var contentLen =0; contentLen<content.length;contentLen++){
				content=content.replace("\n","§");
				
			}
			//2 xhr 에 callback 함수 등록
			xhr.onreadystatechange = getTransData;
			//3 xhr.open
			xhr.open("POST", url, false); // false : 비동기적 요청
			xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
			//4 요청 전송
			
			xhr.send(content);
			
		}		
		//콜백 함수	
		//표준변환 콜백함수
		function getTransData(){
			if(xhr.readyState == 4){
				if(xhr.status == 200){
					var txt = xhr.responseText;
					var tempValue = "("+txt+")";
					var transWord = "";
					var ipa="";
					var adult="";
					var changeData = eval(tempValue);
					
					var nbsp="&nbsp;";
					for(var pronunLen=0;pronunLen<changeData.changeWord.length;pronunLen++){
						transWord += changeData.changeWord[pronunLen].pronun+" ";
						for(var transLen=0;transLen<transWord.length;transLen++){
							transWord = transWord.replace("\n","</br>");
							
						}
						if(changeData.changeWord[pronunLen].pronun.substring(changeData.changeWord[pronunLen].pronun.length-1,changeData.changeWord[pronunLen].pronun.length) =="\n"){	
							ipa += changeData.changeWord[pronunLen].ipa+"</br>";
						}else{
							ipa += changeData.changeWord[pronunLen].ipa+" ";
						}
					}
					
					var tags = '';
					tags += '<div id="wrap1">';
					tags += '<div id="text_table">';
					tags += '<div id="text">';
					tags += '<dl>';
					tags += '<dd class="left_text"><img src="/images/trans/text_01.jpg" /></dd>';
					tags += '<dd class="right_text">'+transWord+'</dd>';
					tags += '<dd class="left_text1"><img src="/images/trans/text_02.jpg" /></dd>';
					tags += '<dd class="right_text1">'+ipa+'</dd>';
					tags += '</dl>';
					tags += '</div>';
					for(var i=0;i<changeData.changeWord.length;i++){
						var adultLink="";
						for(var j=0;j<changeData.changeWord[i].adult.length;j++){
							
							var reAdult = changeData.changeWord[i].adult[j].replace("항", "");
							
							adultLink += '<a href=javascript:adult_open_window('+reAdult+')>'+changeData.changeWord[i].adult[j]+'</a>'+" ";
						}
					var transResult = changeData.changeWord[i].pronun;
					tags += '<div id="text1">';
					tags += '<dl>';
					tags += '<dd class="text_left"><img src="/images/trans/text_04.jpg" /></dd>';
					tags += '<dd class="text_left1"><img src="/images/trans/text_05.jpg" /></dd>';
					tags += '<dd class="text_right">'+transResult+'</dd>';
					tags += '<dd class="text_right1">'+adultLink+'</dd>';
					tags += '</dl>';
					tags += '</div>';
					}
					tags += '<div id="close">';
					tags += '<dl>';
					tags += '<dd class="close_button"><a href="javaScript:closeTable()"><img src="/images/trans/close.jpg" /></a></dd>';
					tags += '</dl>';
					tags += '</div>';
					tags += '</div>';
					tags += '</div>';
					
					
					/*tags += '<table cellpadding="10" cellspacing="0" border="1" style="width: 400px ;height:100;">';
						tags += '<tr>';
							tags += '<td width="100px">변환결과</td>';
							tags += '<td width="400px">'+transWord+'</td>';
						tags += '</tr>';
						tags += '<tr>';
							tags += '<td width="100px">IPA</td>';
							tags += '<td width="400px">'+ipa+'</td>';
						tags += '</tr>';
						
					tags += "</table>";
					
					for(var i=0;i<changeData.changeWord.length;i++){
						var adultLink="";
						for(var j=0;j<changeData.changeWord[i].adult.length;j++){
							
							var reAdult = changeData.changeWord[i].adult[j].replace("항", "");
							
							adultLink += '<a href=javascript:adult_open_window('+reAdult+')>'+changeData.changeWord[i].adult[j]+'</a>'+" ";
						}
						var transResult = changeData.changeWord[i].pronun;
						tags += '<table cellpadding="10" cellspacing="0" border="1" style="width: 400px ;height:100;">';
						tags += '<tr>';
							tags += '<td>변환 결과</td><td>표준발음법</td>';
						tags += '</tr>';
						
						tags += '<tr>';
							tags += '<td width="400px">'+transResult+'</td>';
							tags += '<td width="400px">'+adultLink+'&nbsp;</td>';
							
						tags += '</tr>';
						tags += "</table>";
					}	
					tags += '<tr><td align="right" colspan="2"><input type="button" onclick="self.close()" id="user" value="닫기" ></td></tr>';*/
					document.getElementById('divBox1').innerHTML = tags;
					
				}
			}
		}
		function standardPronun(){
			window.open("/test.jsp","win11","toolbar=no,scrollbars=yes,resizable=yes,width=538,height=350");
		}
//----------------------------------------------------------------------------------------------------------------		
//-------------------------------------------- 교정을 위한 함수 ------------------------------------------------------

		//직접 바꾸기 
		function changeUser(i_sentence,i_errorInfo){
			
			var s_changeUser = document.getElementById("suggestUser").value;
			var a_originalSentence = new Array(jsonAll.allSentence.length);
			var a_tagOriginalSentence = new Array(jsonAll.allSentence.length);
			
			//검사전 원문 배열에 저장
			for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
				a_originalSentence[i_sentenceSeq] = jsonAll.allSentence[i_sentenceSeq].original;	
				a_tagOriginalSentence[i_sentenceSeq] = jsonAll.allSentence[i_sentenceSeq].tagOriginal;
			}

			var original = a_originalSentence[i_sentence];
			var tagOriginal = a_tagOriginalSentence[i_sentence];
			var start = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].startPosition;
			var error = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].errorLength;
			var sub=original.substr(start,error);
			
			var replaceOri = tagOriginal.replace(sub,s_changeUser);
			a_tagOriginalSentence[i_sentence] = replaceOri;
			var reSendOri=null;
			//replace된 문장을 뽑아 ir1 에 다시 셋팅 후 getSentence() 재실행
			for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
				if( reSendOri == null ){
					reSendOri = a_tagOriginalSentence[i_sentenceSeq];
				}else{
					reSendOri = reSendOri + a_tagOriginalSentence[i_sentenceSeq];
				}
				
			}	
			oEditors.getById["ir1"].setIR(reSendOri);
			getSentence();
			removeTable();	
		}
//----------------------------------------------------------------------------------------------------------------
//------------------------------------------DIV 관련 함수 -----------------------------------------------------------
		
	
		//마우스 왼쪽 버튼 제시어 띄우기
		function divbarunhangul1(event, ddocument,i_sentence,i_errorInfo){
			
			cdocument = ddocument;
			var suggestWord="";
			var adultHelp= jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].adultType.replace("「교과서 검정용(교과평)」 맞춤법 검사기 v4.02 [NARAINFOTECH]","");
			var tags = '';
			
			for( var i_suggest=0; i_suggest < jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest.length; i_suggest++ ){
				if(jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]!= null ){
					if(suggestWord==""){
						suggestWord ="<SPAN style='' onmouseover=\"this.style.backgroundColor='#65cbff'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					}else{
						suggestWord = suggestWord + "</br>&nbsp;" + "<SPAN style='' onmouseover=\"this.style.backgroundColor='#65cbff'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					}
				}
			}

			
			if(suggestWord == "" ){
				suggestWord="제시어가 없습니다.";
			}
			tags += '<div style="width:230px; height:100%; float:left; border:#3d8fe0 1px solid; margin:0px; padding:4px; overflow:visible; background:#fff">';
			tags += '<dl style="display:block;width:230px;height:30px; margin:0px; padding:0px 0px 0px 0px; border-bottom:#ababab 1px solid">';
			tags += '<dd style="display:block; float:left; width:185px;height:20px; margin:0px; padding:5px 0px 5px 5px; font:12px/160% "굴림"; color:#d30b14;">제시어를 클릭하세요.</dd>';
			tags += '<dd style="display:block; float:left; width:23px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:viewHelp(event,document,'+i_sentence+','+i_errorInfo+')"><img src="/images/ex/ex_btnquestion.gif" width="16" height="15" alt="" /></a></dd>';
			//tags += '<a href="javascript:removeTable()"><img src="/component/smartEditor/img/pop/pop_close.gif" alt="닫기" /></a>';
			tags += '<dd style="display:block; float:right; width:17px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:removeTable()"><img src="/images/ex/ex_btnClose.gif" width="17" height="15" alt="" /></a></dd> </dl>';
			tags += '<ul style="display:block;width:230px; height:100%; overflow:auto; margin:0px; padding:8px 0px 10px 0px;">';
			tags += '<li style="display:inline; list-style:none; margin:0px; padding:5px 10px 5px 5px; font:12px/25px "굴림"; color:#343434;background:#cdf6ff; overflow:visible;">'+suggestWord+'</li><br />';
			tags += '</ul>';
			tags += '<dl style="display:block;width:230px;height:30px; margin:0px; padding:5px 0px 5px 0px; background:#f0f0f0; border-top:#cecece 1px solid;">';
			tags += '<dd style="display:block;width:148px; float:left;margin:0px; padding:3px 0px 3px 5px;"><input type="text" name="textfield" id="suggestUser" style="border:#ababab 1px solid; width:140px; height:20px;" /></dd>';
			tags += '<dd style="display:block;width:66px; float:left;margin:0px; padding:5px 5px 0px 5px; text-align:right"><a href="javascript:changeUser('+i_sentence+","+i_errorInfo+')"><img src="/images/ex/ex_btnOk.gif" alt="" width="66" height="21" border="0" align="absmiddle" /></a></dd>';
			tags += '</dl></div> ';
			
			/*tags += '<table  width="213" border="0" align="center" cellpadding="0" cellspacing="0">';
			tags += '<tr><th scope="row"><img src="/images/ex/ex_tit.gif" width="213" height="33" alt="" /></th></tr>';
			tags += '<th scope="row" style="background:url(/images/ex/ex_back.gif) repeat-y; padding:5px;">';
			tags += '<table width="93%" border="0" align="center" cellpadding="0" cellspacing="5">';
			tags += '<tr><td height="20" scope="row" style="FONT: 12px/100% \'돋움\', Verdana, Arial, sans-serif,; COLOR: #2e2e2e;">'+suggestWord+'</td></tr>';
			tags += '</table>';
			tags += '</th></tr>';
			tags += '<tr>';
			tags += '<th height="38" style="background: url(/images/ex/ex_btm.gif) no-repeat; text-align: center" scope="row">';
			tags += '<input type="text" name="textfield" id="suggestUser" style="border: #ababab 1px solid; width: 115px; height: 20px;"/>&nbsp;';
			tags += '<a href="javascript:changeUser('+i_sentence+","+i_errorInfo+')"><img src="/images/ex/ex_btnOk.gif" alt="" width="66" height="21" border="0" align="absmiddle" /></a>';
			tags += '</th></tr>';
			tags += '</table>';*/
		
			/*
			tags += '<div id="wrap_POP">';
			tags += '<ul id="wrap_Lay01">';
			tags += '<div id="PopTopTit"><!-- 타이틀 --><ul class="Left_tit"><img src="/component/smartEditor/img/pop/pop_HelpTxt.gif" alt="도움말" /></ul>';
			tags += '<ul class="Right_tit"><a href="javascript:removeTable()"><img src="/component/smartEditor/img/pop/pop_close.gif" alt="닫기" /></a></ul></div>';
			tags += '<div id="PopTopList"><!-- 내용 들어가는 부분 --><ul class="Left_Lsit"><dd class="Left_Stit">바꿀말</dd>';
		    tags += '<dd class="Left_Sbtn"><a href="javascript:viewHelp(event,document,'+i_sentence+','+i_errorInfo+')"><img src="/component/smartEditor/img/pop/pop_btn05_on.gif" width="81" height="24" alt="설명보기" /></a></dd>';
			tags += '<dd class="Left_Txt">'+suggestWord+'</dd></ul></div>';
		    tags += '<div id="PopTopInfo"><!-- 찾기 부분 --><ul class="Dot_line"><img src="/component/smartEditor/img/pop/pop_dotLine.gif" alt="" /></ul>';
		    tags += ' <ul class="Info_areaL"><input name="info" id="suggestUser" height="25" type="text" class="Pop_input" align="texttop"/></ul>';
			tags += '<ul class="Info_areaLBtn"><a href="javascript:changeUser('+i_sentence+","+i_errorInfo+')"><img src="/component/smartEditor/img/pop/pop_btnW.gif" alt="입력" align="absmiddle"/></a></ul></div>';
		    tags += '<div id="PopTopBtn">';
		    //if(flag=='O'){
		    tags += '<!-- 버튼 부분 --><ul class="Btn_areaC">';
		    tags += '<a href="javascript:userDic('+i_sentence+','+i_errorInfo+')"><img src="/component/smartEditor/img/pop/pop_btn01.gif" width="249" height="21" alt="사용자 사전 등록" /></a>';
		   // }
		    tags += '</ul></div></ul></div>';	
		  */
			
			
			document.getElementById('divBox').innerHTML = tags;
			moveDiv(event);
			
		
		} 
		function forward(i_sentence,i_errorInfo){
			 if(i_errorInfo <= (jsonAll.allSentence[i_sentence].errorInfo.length - 1)){
				 if(i_errorInfo == (jsonAll.allSentence[i_sentence].errorInfo.length - 1)){
						i_sentence = i_sentence + 1;
						i_errorInfo = 0;
						if(i_sentence > (jsonAll.allSentence.length - 1)){
							i_sentence = i_sentence -1;
							i_errorInfo = (jsonAll.allSentence[i_sentence].errorInfo.length - 1);
							alert("마지막 오류입니다.");
						}
						viewHelp2(i_sentence,i_errorInfo);
						
					}
				 else {
					 i_errorInfo = i_errorInfo + 1;
					 viewHelp2(i_sentence,i_errorInfo);
				}
				
			}
			
		}
		
		function previous(i_sentence,i_errorInfo){
			 if(i_errorInfo <= (jsonAll.allSentence[i_sentence].errorInfo.length - 1)){
				 if(i_errorInfo ==0){
					 i_sentence = i_sentence - 1;
					 if(i_sentence == -1 ){
							i_sentence = i_sentence + 1;
							i_errorInfo = 0;
							alert("첫번째 오류입니다.");
						}else{	
							i_errorInfo = (jsonAll.allSentence[i_sentence].errorInfo.length -1);
						}
					 	
										
						viewHelp2(i_sentence,i_errorInfo);
						
					}
				 else {
					 i_errorInfo = i_errorInfo - 1;
					 viewHelp2(i_sentence,i_errorInfo);
				}
				
			}
			
		}
		function viewHelp2(i_sentence,i_errorInfo){
			removeTable();
			
			var suggestWord="";
			var adultHelp= jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].adultType.replace("「교과서 검정용(교과평)」 맞춤법 검사기 v4.02 [NARAINFOTECH]","");
			var tags = '';
			
			for( var i_suggest=0; i_suggest < jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest.length; i_suggest++ ){
				if(jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]!= null ){
					if(suggestWord==""){
						suggestWord ="<SPAN style='' onmouseover=\"this.style.backgroundColor='#65cbff'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					}else{
						suggestWord = suggestWord + "</br>&nbsp;" + "<SPAN style='' onmouseover=\"this.style.backgroundColor='#65cbff'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					}
				}
			}

			
			if(suggestWord == "" ){
				suggestWord="제시어가 없습니다.";
			}
			tags += '<table cellpadding="10" cellspacing="0" border="1" height="500">';
			tags += '<div style="width:230px; height:100%; float:left; border:#3d8fe0 1px solid; margin:0px; padding:4px; overflow:visible; background:#fff">';
			tags += '<dl style="display:block;width:230px;height:30px; margin:0px; padding:0px 0px 0px 0px; border-bottom:#ababab 1px solid">';
			tags += '<dd style="display:block; float:left; width:185px;height:20px; margin:0px; padding:5px 0px 5px 5px; font:12px/160% "굴림"; color:#d30b14;">제시어를 클릭하세요.</dd>';
			tags += '<dd style="display:block; float:left; width:23px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:viewHelp(event,document,'+i_sentence+','+i_errorInfo+')"><img src="/images/ex/ex_btnquestion.gif" width="16" height="15" alt="" /></a></dd>';
			//tags += '<a href="javascript:removeTable()"><img src="/component/smartEditor/img/pop/pop_close.gif" alt="닫기" /></a>';
			tags += '<dd style="display:block; float:right; width:17px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:removeTable()"><img src="/images/ex/ex_btnClose.gif" width="17" height="15" alt="" /></a></dd> </dl>';
			tags += '<ul style="display:block;width:230px; height:100%; overflow:auto; margin:0px; padding:8px 0px 10px 0px;">';
			tags += '<li style="display:inline; list-style:none; margin:0px; padding:5px 10px 5px 5px; font:12px/25px "굴림"; color:#343434;background:#cdf6ff; overflow:visible;">'+suggestWord+'</li><br />';
			tags += '</ul>';
			tags += '<dl style="display:block;width:230px;height:30px; margin:0px; padding:5px 0px 5px 0px; background:#f0f0f0; border-top:#cecece 1px solid;">';
			tags += '<dd style="display:block;width:148px; float:left;margin:0px; padding:3px 0px 3px 5px;"><input type="text" name="textfield" id="suggestUser" style="border:#ababab 1px solid; width:140px; height:20px;" /></dd>';
			tags += '<dd style="display:block;width:66px; float:left;margin:0px; padding:5px 5px 0px 5px; text-align:right"><a href="javascript:changeUser('+i_sentence+","+i_errorInfo+')"><img src="/images/ex/ex_btnOk.gif" alt="" width="66" height="21" border="0" align="absmiddle" /></a></dd>';
			tags += '</dl></div> ';
			tags += '<div style="width:260px; height:100%; float:left; border:#3d8fe0 1px solid;margin:0px 0px 0px 3px; padding:4px; overflow:visible; background:#fff">';
			tags += '<dl style="display:block;width:260px;height:30px; margin:0px; padding:0px 0px 0px 0px; border-bottom:#ababab 1px solid">';
			tags += '<dd style="display:block; float:left; width:230px;height:20px; margin:0px; padding:5px 0px 5px 5px;"><img src="/images/ex/ex_title.gif" width="56" height="13" alt="" /></dd>';
			tags += '<dd style="display:block; float:right; width:20px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:removeTable()"><img src="/images/ex/ex_btnClose.gif" width="17" height="15" alt="" /></a></dd>';
			tags += '</dl>';
			tags += '<dl style="display:block;width:260px;height:170px; overflow:auto; margin:0px; padding:8px 0px 10px 0px;">';
			tags += '<dd style="display:block;width:225px; margin:0px auto; padding:5px 10px 5px 8px; font:12px/160% "굴림"; color:#343434; overflow:visible; text-align:justify;">'+adultHelp+'</dd></dl>';
			tags += '<dl style="display:block;width:260px;height:30px; margin:0px; padding:5px 0px 5px 0px; background:#f0f0f0; border-top:#cecece 1px solid;">';
			tags += '<dd style="display:block;width:40px; float:left;margin:0px; padding:6px 25px 5px 10px;"><a href="javascript:previous('+i_sentence+','+i_errorInfo+')"><img src="/images/ex/btn_prev.gif" width="40" height="21" alt="" border="0" /></a></dd>';
			tags += '<dd style="display:block;width:40px; float:left;margin:0px; padding:6px 13px 5px 0px;"><a href="javascript:forward('+i_sentence+','+i_errorInfo+')"><img src="/images/ex/btn_next.gif" width="40" height="21" alt=""  border="0" /></a></dd>';
			tags += '<dd style="display:block;width:59px; float:left;margin:0px; padding:6px 5px 5px 0px;"><a href="javascript:userDic('+i_sentence+','+i_errorInfo+')"><img src="/images/ex/btn_dic.gif" width="59" height="21" alt="" border="0" /></a></dd>';
			tags += '<dd style="display:block;width:59px; float:left;margin:0px; padding:6px 0px 5px 0px;"><a href="#"><img src="/images/ex/btn_error.gif" width="59" height="21" alt=""  border="0" /></a></dd>';
			tags += '</dl></div>';
		
			document.getElementById('divBox').innerHTML = tags;
			moveDiv(event);;
		}
		//도움말 보여주기
		function viewHelp(event, ddocument,i_sentence,i_errorInfo){
			removeTable();			cdocument = ddocument;
			var suggestWord="";
			var adultHelp= jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].adultType.replace("「교과서 검정용(교과평)」 맞춤법 검사기 v4.02 [NARAINFOTECH]","");
			var tags = '';
			
			for( var i_suggest=0; i_suggest < jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest.length; i_suggest++ ){
				if(jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]!= null ){
					if(suggestWord==""){
						suggestWord ="<SPAN style='' onmouseover=\"this.style.backgroundColor='#65cbff'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					}else{
						suggestWord = suggestWord + "</br>&nbsp;" + "<SPAN style='' onmouseover=\"this.style.backgroundColor='#65cbff'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					}
				}
			}

			
			if(suggestWord == "" ){
				suggestWord="제시어가 없습니다.";
			}
			tags += '<table cellpadding="10" cellspacing="0" border="1" height="500">';
			tags += '<div style="width:230px; height:100%; float:left; border:#3d8fe0 1px solid; margin:0px; padding:4px; overflow:visible; background:#fff">';
			tags += '<dl style="display:block;width:230px;height:30px; margin:0px; padding:0px 0px 0px 0px; border-bottom:#ababab 1px solid">';
			tags += '<dd style="display:block; float:left; width:185px;height:20px; margin:0px; padding:5px 0px 5px 5px; font:12px/160% "굴림"; color:#d30b14;">제시어를 클릭하세요.</dd>';
			tags += '<dd style="display:block; float:left; width:23px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:viewHelp(event,document,'+i_sentence+','+i_errorInfo+')"><img src="/images/ex/ex_btnquestion.gif" width="16" height="15" alt="" /></a></dd>';
			//tags += '<a href="javascript:removeTable()"><img src="/component/smartEditor/img/pop/pop_close.gif" alt="닫기" /></a>';
			tags += '<dd style="display:block; float:right; width:17px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:removeTable()"><img src="/images/ex/ex_btnClose.gif" width="17" height="15" alt="" /></a></dd> </dl>';
			tags += '<ul style="display:block;width:230px; height:100%; overflow:auto; margin:0px; padding:8px 0px 10px 0px;">';
			tags += '<li style="display:inline; list-style:none; margin:0px; padding:5px 10px 5px 5px; font:12px/25px "굴림"; color:#343434;background:#cdf6ff; overflow:visible;">'+suggestWord+'</li><br />';
			tags += '</ul>';
			tags += '<dl style="display:block;width:230px;height:30px; margin:0px; padding:5px 0px 5px 0px; background:#f0f0f0; border-top:#cecece 1px solid;">';
			tags += '<dd style="display:block;width:148px; float:left;margin:0px; padding:3px 0px 3px 5px;"><input type="text" name="textfield" id="suggestUser" style="border:#ababab 1px solid; width:140px; height:20px;" /></dd>';
			tags += '<dd style="display:block;width:66px; float:left;margin:0px; padding:5px 5px 0px 5px; text-align:right"><a href="javascript:changeUser('+i_sentence+","+i_errorInfo+')"><img src="/images/ex/ex_btnOk.gif" alt="" width="66" height="21" border="0" align="absmiddle" /></a></dd>';
			tags += '</dl></div> ';
			tags += '<div style="width:260px; height:100%; float:left; border:#3d8fe0 1px solid;margin:0px 0px 0px 3px; padding:4px; overflow:visible; background:#fff">';
			tags += '<dl style="display:block;width:260px;height:30px; margin:0px; padding:0px 0px 0px 0px; border-bottom:#ababab 1px solid">';
			tags += '<dd style="display:block; float:left; width:230px;height:20px; margin:0px; padding:5px 0px 5px 5px;"><img src="/images/ex/ex_title.gif" width="56" height="13" alt="" /></dd>';
			tags += '<dd style="display:block; float:right; width:20px;height:17px; margin:0px; padding:6px 0px 5px 0px;"><a href="javascript:removeTable()"><img src="/images/ex/ex_btnClose.gif" width="17" height="15" alt="" /></a></dd>';
			tags += '</dl>';
			tags += '<dl style="display:block;width:260px;height:170px; overflow:auto; margin:0px; padding:8px 0px 10px 0px;">';
			tags += '<dd style="display:block;width:225px; margin:0px auto; padding:5px 10px 5px 8px; font:12px/160% "굴림"; color:#343434; overflow:visible; text-align:justify;">'+adultHelp+'</dd></dl>';
			tags += '<dl style="display:block;width:260px;height:30px; margin:0px; padding:5px 0px 5px 0px; background:#f0f0f0; border-top:#cecece 1px solid;">';
			tags += '<dd style="display:block;width:40px; float:left;margin:0px; padding:6px 25px 5px 10px;"><a href="javascript:previous('+i_sentence+','+i_errorInfo+')"><img src="/images/ex/btn_prev.gif" width="40" height="21" alt="" border="0" /></a></dd>';
			tags += '<dd style="display:block;width:40px; float:left;margin:0px; padding:6px 13px 5px 0px;"><a href="javascript:forward('+i_sentence+','+i_errorInfo+')"><img src="/images/ex/btn_next.gif" width="40" height="21" alt=""  border="0" /></a></dd>';
			tags += '<dd style="display:block;width:59px; float:left;margin:0px; padding:6px 5px 5px 0px;"><a href="javascript:userDic('+i_sentence+','+i_errorInfo+')"><img src="/images/ex/btn_dic.gif" width="59" height="21" alt="" border="0" /></a></dd>';
			tags += '<dd style="display:block;width:59px; float:left;margin:0px; padding:6px 0px 5px 0px;"><a href="#"><img src="/images/ex/btn_error.gif" width="59" height="21" alt=""  border="0" /></a></dd>';
			tags += '</dl></div>';
		
			document.getElementById('divBox').innerHTML = tags;
			moveDiv(event);;
		}
		//테이블 지우고 재검사
		function contextmenuDivRemove(i_sentence,i_errorInfo,i_suggest){
			removeTable();
			reCheck(i_sentence,i_errorInfo,i_suggest);
		}
		//테이블 지우기
		function goViewHelp(){
			var divBox = document.getElementById('divBox');
			while(div.firstChild){
				divBox.removeChild(divBox.firstChild);
			}
			viewHelp();
		}
		// 테이블 지우기
		function removeTable(){
			var div = document.getElementById("divBox");
			if(div.firstChild){
				while(div.firstChild){
					div.removeChild(div.firstChild);
				}
			}
			
		}
		//사용자 사전 div 지우기 (임시)
		function removeTable2(){
			var div = document.getElementById("divBox1");
			if(div.firstChild){
				while(div.firstChild){
					div.removeChild(div.firstChild);
				}
			}
		}
		
		//DIV 위치 조정
		function moveDiv(event){ 
			var cw=screen.availWidth; // 화면 너비
			var sw=screen.availHeight; // 화면 높이
			var pointX = (650/4)*3;
			var pointY = (400/4)*3;
			var evt=window.event || event;
			var x = event.clientX;
			var y = event.clientY;
			if(x > pointX && y > pointY){
				document.getElementById("divBox").style.position="absolute";
				document.getElementById("divBox").style.visibility="visible";
				document.getElementById("divBox").style.left=x-40;   //evt.clientX는 이벤트가 발생한 x좌료
				document.getElementById("divBox").style.top=event.clientY + document.body.scrollTop-40;   //y좌표
			}else if(x > pointX){
				document.getElementById("divBox").style.position="absolute";
				document.getElementById("divBox").style.visibility="visible";
				document.getElementById("divBox").style.left=x;   //evt.clientX는 이벤트가 발생한 x좌료
				document.getElementById("divBox").style.top=event.clientY + document.body.scrollTop+80;   //y좌표
			}else if(y > pointY){
				
				document.getElementById("divBox").style.position="absolute";
				document.getElementById("divBox").style.visibility="visible";
				document.getElementById("divBox").style.left=x+260;   //evt.clientX는 이벤트가 발생한 x좌료
				document.getElementById("divBox").style.top=event.clientY + document.body.scrollTop-40;   //y좌표
			}else{
				document.getElementById("divBox").style.position="absolute";
				document.getElementById("divBox").style.visibility="visible";
				document.getElementById("divBox").style.left=x+260;   //evt.clientX는 이벤트가 발생한 x좌료
				document.getElementById("divBox").style.top=event.clientY + document.body.scrollTop+120;   //y좌표
			}
			
		}
		
		//도움말DIV 위치조정
		function moveDiv2(event){ 
			var cw=screen.availWidth; // 화면 너비
			var ch=screen.availHeight; // 화면 높이
			var evt=window.event || event;
			
			var sw=500;// 띄울 창의 너비
			var sh=500;
			// 띄울 창의 높이

			var ml=((cw-sw)/2);// 가운데 띄우기위한 창의 x위치
			var mh=((ch-sh)/2);
			document.getElementById("divBox").style.left=ml-200;  //evt.clientX는 이벤트가 발생한 x좌료
			document.getElementById("divBox").style.top=mh-80;   //y좌표
			
			
		}

		function itemClick(event) {
		    var d = document.getElementById('divBox');
		    d.style.display='block';
		    
		    var elm = event.srcElement.parentElement;
		    var pos = abspos();
		    var i = parseInt(elm.parentElement.offsetHeight,10);
		    var j = parseInt(elm.offsetHeight,10);
		    pos.y += 10;
		    d.style.left = pos.x  + 110;
		    d.style.top = pos.y + 110;
		}

		 
//----------------------------------------------------------------------------------------------------------------

//---------------------------------------------사용자 사전 관련 함수 ---------------------------------------------------
		//사용자사전 값 받아오기 
		function userDic(i_sentence,i_errorInfo){
			
			removeTable();
			createXhr();
			var original = jsonAll.allSentence[i_sentence].original;
			var start = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].startPosition;
			var error = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].errorLength;
			var sub=original.substr(start,error);
			var content ="content=" + sub;
			var url = "/controller.do?command=getuserDic";
			//3 xhr.open
			xhr.open("POST", url, false); // false : 비동기적 요청
			xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
			//4 요청 전송
			xhr.send(content);
			getSentence();
				
		}
		
		//사용자 사전 목록 보기
		function userAll(){
			createXhr();
			var url = "/controller.do?command=get_userDicAll";
			xhr.onreadystatechange = getUserData;
			//3 xhr.open
			xhr.open("POST", url, false); // false : 비동기적 요청
			xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
			//4 요청 전송
			xhr.send();
		}
		//콜백
		function getUserData(){
			if(xhr.readyState == 4){
				if(xhr.status == 200){
					var txt = xhr.responseText;
					
					var tempValue = "("+txt+")";
					
					var JsonUserData = eval(tempValue);
					var tags = '';
					tags += '<table cellpadding="10" cellspacing="0" border="1">';
					tags += '<tr><td>사용자 사전 목록</td></tr>';
					tags += '<tr><td><div style=\'width:150px;height:100px; overflow-y:auto; align:top\'>';
					for(var i=0;i<JsonUserData.userTerm.length;i++){
						var user = JsonUserData.userTerm[i];
						
						tags += user+"</br>";	
					}
					tags += '</div></td></tr>';
					tags += '<tr><td><input type="text" id="del"/><input type="button" value="지우기" onclick="userDicDel()"/></td></tr>';
					tags += '<tr><td align="right"><input type="button" onclick="removeTable2()" id="user" value="닫기" ></td></tr>';
					tags += "</table>";
								
					document.getElementById('divBox1').innerHTML = tags;
					moveDiv(event);
					for(var i=0;i<JsonUserData.userTerm.length;i++){
						
						
					}
				}
			}
		}
		
		function userDicDel(){
			createXhr();
			var delWord = document.getElementById("del").value;
			var content ="content=" + delWord;
			
			var url = "controller.do?command=remove_userDic";
			//3 xhr.open
			xhr.open("POST", url, false); // false : 비동기적 요청
			xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded;');
			//4 요청 전송
			xhr.send(content);
			document.getElementById("del").value="";
			userAll();
		}
//----------------------------------------------------------------------------------------------------------------
//----------------------------------------------BOARD 버튼 기능 ----------------------------------------------------	
		//작성취소 시 리셋하기
		function reset(){
			document.getElementById("titleTB").value="";
			var reset="";
			oEditors.getById["ir1"].setIR(reset);
		}
		//리스트 출력하기
		function listSubmit(){
			document.forms["list"].submit();
			
		}
		//글 지우기
		function removeForm(){
			document.forms["remove"].submit();
		}
		//글 고치기
		function modifyForm(){
			document.forms["modify"].submit();
		}
//------------------------------------------------------------------------------------------------------------------		
		function center(cw,sw){
			cw=screen.availWidth; // 화면 너비
			sw=screen.availHeight; // 화면 높이

			sw=500;// 띄울 창의 너비
			// 띄울 창의 높이

			ml=((cw-sw)/3)*2;// 가운데 띄우기위한 창의 x위치
			
		}
		function transPop(){
			
			cw=screen.availWidth; // 화면 너비
			ch=screen.availHeight; // 화면 높이

			sw=500;// 띄울 창의 너비
			// 띄울 창의 높이

			ml=(cw-sw)/2;// 가운데 띄우기위한 창의 x위치
			
		 			
			//팝업창 띄우기
			var winObject = window.open('/test.jsp','aaa','width='+sw+',left='+ml+', menubar=0,scrollbars=yes,toolbar=0,directories=0,status=no');

			//팝업창에 도움말 넣기
					
		}
	/*
		//일반 도움말 출력
		function onloadEvent(i_sentence,i_errorInfo){
			
			cw=screen.availWidth; // 화면 너비
			ch=screen.availHeight; // 화면 높이

			sw=500;// 띄울 창의 너비
			// 띄울 창의 높이

			ml=(cw-sw)/2;// 가운데 띄우기위한 창의 x위치
			
		 			
			//팝업창 띄우기
			var winObject = window.open('/test.jsp','aaa','width='+sw+',left='+ml+', menubar=0,scrollbars=yes,toolbar=0,directories=0,status=no');

			//팝업창에 도움말 넣기
			winObject.document.all.help.innerHTML = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].adultType;
			//해당 오류에 대한 제시어 추출
			var suggestWord2 = "";
			for( var i_suggest=0; i_suggest < jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest.length; i_suggest++ ){
				var tr3 = document.createElement("tr");
				var suggestWord = "<SPAN style='' onmouseover=\"this.style.backgroundColor='tomato'\" onmouseout=\"this.style.backgroundColor=''\" onclick='opener.reCheck("+i_sentence+","+i_errorInfo+","+i_suggest+");self.close();'>"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
//				tr3.innerHTML = suggestWord;
//				tr3.setAttribute("width","50");
//				tr3.setAttribute("onclick", "reCheck("+i_sentence+","+i_errorInfo+","+i_suggest+")");
//				tr3.setAttribute("onmouseover","backgroundColor='tomato'");
				suggestWord2 = suggestWord2 + suggestWord + "<br/>";
			}
			var original = jsonAll.allSentence[i_sentence].original;
			var start = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].startPosition;
			var error = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].errorLength;
			var sub=original.substr(start,error);
			//제시어 팝업창에 출력
			winObject.document.all.suggest.innerHTML = suggestWord2+"<br/>";
			winObject.document.all.i_sentence.value = i_sentence;
			winObject.document.all.i_errorInfo.value = i_errorInfo;
			winObject.document.all.original.value = sub;
		}
		//보다나은 도움말 받아오기
		function getSuggestHelp(suggestHelp){
			alert("서제스트"+suggestHelp);
		}
			
		//직접 바꾸기 2
		function changeUser2(suggestUser,i_sentence,i_errorInfo){
			
			var a_originalSentence = new Array(jsonAll.allSentence.length);
			var a_tagOriginalSentence = new Array(jsonAll.allSentence.length);
			
			//검사전 원문 배열에 저장
			for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
				a_originalSentence[i_sentenceSeq] = jsonAll.allSentence[i_sentenceSeq].original;	
				a_tagOriginalSentence[i_sentenceSeq] = jsonAll.allSentence[i_sentenceSeq].tagOriginal;
			}

			var original = a_originalSentence[i_sentence];
			var tagOriginal = a_tagOriginalSentence[i_sentence];
			var start = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].startPosition;
			var error = jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].errorLength;
			var sub=original.substr(start,error);
			
			var replaceOri = tagOriginal.replace(sub,suggestUser);
			a_tagOriginalSentence[i_sentence] = replaceOri;
			var reSendOri=null;
			//replace된 문장을 뽑아 ir1 에 다시 셋팅 후 getSentence() 재실행
			for(var i_sentenceSeq=0;i_sentenceSeq<jsonAll.allSentence.length;i_sentenceSeq++){
				if( reSendOri == null ){
					reSendOri = a_tagOriginalSentence[i_sentenceSeq];
				}else{
					reSendOri = reSendOri + a_tagOriginalSentence[i_sentenceSeq];
				}
				
			}	
			oEditors.getById["ir1"].setIR(reSendOri);
			getSentence();
			removeTable();	
		}
			
			function key(event,focus){
				var ctrl = event.ctrlKey;
				var code = event.keyCode;
				if(event.ctrlKey && (event.keyCode==86)){ 
					if( window.clipboardData )  {
									
						//var a = window.clipboardData.getData('Text');
						//var b = oEditors.getById["ir1"].getIR();
						//var txt = a;
						//cRange = document.selection.createRange();
						//cRange.text = txt;
											  
					}
					else{  
					     return "";
					}  
				}  
					
			}
			//마우스오른쪽 버튼을 위한 div생성
			function divbarunhangul(event, ddocument,i_sentence,i_errorInfo){
				cdocument = ddocument;
				var tags = '';
				tags += '<table cellpadding="5" cellspacinfg="0" border="1">';
					
				var google="<SPAN Style ='' onmouseover=\"this.style.backgroundColor='#00ff00'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"linkGoogle()\">GOOGLE</SPAN>";
				var ecglobal="<SPAN Style ='' onmouseover=\"this.style.backgroundColor='#00ff00'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"ECGlobal()\">ECGLOBAL</SPAN>";
				var naver="<SPAN Style ='' onmouseover=\"this.style.backgroundColor='#00ff00'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"Naver()\">네이버</SPAN>";

				tags += '<tr>';
				tags += "<td>" + ecglobal +'</td>';
				tags += '</tr>';
				tags += '<tr>';
				tags += "<td>" + google +'</td>';
				tags += '</tr>';
				tags += '<tr>';
				tags += "<td>" + naver +'</td>';
				tags += '</tr>';
				for( var i_suggest=0; i_suggest < jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest.length; i_suggest++ ){
					var suggestWord = "<SPAN style='' onmouseover=\"this.style.backgroundColor='#00ff00'\" onmouseout=\"this.style.backgroundColor=''\" onclick=\"parent.parent.contextmenuDivRemove("+i_sentence+","+i_errorInfo+","+i_suggest+")\">"+jsonAll.allSentence[i_sentence].errorInfo[i_errorInfo].suggest[i_suggest]+"</SPAN>";
					tags += '<tr>';
					tags += '<td>'+suggestWord+'</td>';
					tags += '</tr>';
				}
				tags += "<tr><td><input type='button' value='닫기' onclick='removeTable()'/></td></tr>";
				tags += '</table>';
			
				document.getElementById('divBox').innerHTML = tags;
				moveDiv(event);
			}  
		*/
			
			
			
			
		